<?php $ad_id = $_REQUEST["ad_id"]; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>New Career</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Title" content="" />
<meta name="Keywords" content="" />

<link href="css/style.css" rel="stylesheet" type="text/css"/>
<link href="css/jquery.jscrollpane.css" rel="stylesheet" type="text/css"/>

<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.bxSlider.min.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/jquery.capSlide.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script type="text/javascript" src="js/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/mwheelIntent.js"></script>
<script type="text/javascript" src="js/simple.carousel.js"></script>
<script type="text/javascript" src="js/isValidEmail.js"></script>


<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
<script type="text/javascript" src="js/googleAutoCompleteAddress.js"></script>



<?php include('includes/setup.php'); 
$setup = new setup();
?>


</head>
<body onload="initialize()">

<?php include("includes/facebookapi.php"); ?>

<div id="bgwrapper">
	<div id="wrapper">
		
	<?php include("includes/header.php"); ?>

	<?php include("includes/topmenu.php"); ?>

	<?php  

	$action = $_GET['action']; 
	if(!isset($action)) { $action = "homepage"; }

	switch($action){
		case "search":	
		include("search.php");
		break;

		case "insert": 
		include("insert.php");
		break;

		case "homepage":
		include("homepage.php");
		break;

		case "advertisment":
		if($_SESSION['userid']!="")
		{
		include("AdsRegistration.php");
		}else{
		echo "Please login First";
		}
		break;
		
		case "profile":
		include("profile.php");
		break;

		case "company":
		include("company.php");
		break;
		
		case "showAds":
		if($_SESSION['userid']!="")
		{
		include("showAds.php");
		}else{
		echo "Please login First";
		}
		break;
		
		case "registration":
		include("registration.php");
		break;

		case "contact":
		include("contact.php");
		break;
		
		case "forgot":
		include("forgot.php");
		break;

		case "mycv":
		include("mycv.php");
		break;
		
		case "editAds":
		if($_SESSION['userid']!="" & $_REQUEST['ad_id']!="")
		{
		include("editAds.php");
		}else{
		echo "Please login First";
		}
		break;

		default:
		include("homepage.php");

	}
	?>
	<?php include('includes/facebookdiv.php'); ?>

	</div>	
</div>	
<script type="text/javascript" language="javascript">
function check_validation_error()
{

if(document.getElementById("email").value.split(" ").join("") == "")
			{
				alert("Please enter your email address.");
				//alert('Please enter your email address.'); 
				document.getElementById("email").focus();
				//jQuery("#user_email_error").fadeIn("slow");
				return false;
			}
			else
			{
				var emailPat=/^(.+)@(.+)$/
				var matchArray=document.getElementById("email").value.match(emailPat)
			
				if (matchArray==null) 
				{
					//alert("")
					
					document.getElementById("email").focus();
					
					//jQuery("#user_email_error").fadeIn("slow");
					return false;
				}
		}
}
</script>
</body>
</html>	